﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ProcessConfig.ConfigType;

namespace ProcessConfig
{
    public class Configs
    {
        private static ConfigService _data = ConfigService.GetInstance();

        /// <summary>
        /// 一所质检选项16
        /// </summary>
        public static QCOptions QC
        {
            get
            {
                return (QCOptions)ConfigService.GetConfig(typeof(QCOptions));
            }
            set
            {
                _data[typeof(QCOptions)] = value;
            }
        }

        /// <summary>
        /// 对齐参数选项
        /// </summary>
        public static AlignmentAlgorithmFactor AlgorFactors
        {
            get
            {
                return (AlignmentAlgorithmFactor)ConfigService.GetConfig(typeof(AlignmentAlgorithmFactor));
            }
            set
            {
                _data[typeof(AlignmentAlgorithmFactor)] = value;
            }
        }

        /// <summary>
        /// 不支持拍照建议选项21
        /// </summary>
        public static NoSupportOption NoSupportAdvice
        {
            get
            {
                return (NoSupportOption)ConfigService.GetConfig(typeof(NoSupportOption));
            }
            set
            {
                _data[typeof(NoSupportOption)] = value;
            }
        }

      
        /// <summary>
        /// 照片颜色选项7
        /// </summary>
        public static PhotoDirectory PhoDirs
        {
            get
            {
                return (PhotoDirectory)ConfigService.GetConfig(typeof(PhotoDirectory));
            }
            set
            {
                _data[typeof(PhotoDirectory)] = value;
            }
        }
        /// <summary>
        /// 照片尺寸选项10
        /// </summary>
        public static PhotoSize PhoSize
        {
            get
            {
                return (PhotoSize)ConfigService.GetConfig(typeof(PhotoSize));
            }
            set
            {
                _data[typeof(PhotoSize)] = value;
            }
        }

        /// <summary>
        /// PXL颜色调整选项11
        /// </summary>
        public static PxlAdjustOptions ADOpts
        {
            get
            {
                return (PxlAdjustOptions)ConfigService.GetConfig(typeof(PxlAdjustOptions));
            }
            set
            {
                _data[typeof(PxlAdjustOptions)] = value;
            }
        }

        /// <summary>
        /// 拍照选项
        /// </summary>
        public static PhotoTakenOption TakingOption
        {
            get
            {
                return (PhotoTakenOption)ConfigService.GetConfig(typeof(PhotoTakenOption));
            }
            set
            {
                _data[typeof(PhotoTakenOption)] = value;
            }
        }

        /// <summary>
        /// 照片应用选项
        /// </summary>
        public static PhotoApplyOption PhoApplyOption
        {
            get
            {
                return (PhotoApplyOption)ConfigService.GetConfig(typeof(PhotoApplyOption));
            }
            set
            {
                _data[typeof(PhotoApplyOption)] = value;
            }
        }

        /// <summary>
        /// TCP客户端连接选项
        /// </summary>
        public static TcpClientOption TcpClient
        {
            get
            {
                return (TcpClientOption)ConfigService.GetConfig(typeof(TcpClientOption));
            }
            set
            {
                _data[typeof(TcpClientOption)] = value;
            }
        }
    }
}
